package com.jy.api.dao;

import com.jy.api.domain.Team;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by xiaohua on 2018/12/24.
 */
public interface TeamDao extends CrudRepository<Team,Integer>{

    Team findByName(String name);

    List<Team> findAll();


}
